﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace medicine.General
{
    public class ListBoxItem
    {
        public string Text = "";
        public string Value = "";
        public List<ListBoxItem> RelatedItems = new List<ListBoxItem>();

        public ListBoxItem(string Text,string Value)
        {
            this.Text = Text;
            this.Value = Value;
        }
        public override string ToString()
        {
            return this.Text;
        }

        public void AddRelated(ListBoxItem RelatedItem)
        {
            RelatedItems.Add(RelatedItem);
        }



    }
}
